package com.example.shushiyunsst.fragment.main.wallet.item_provider

import com.example.framework.recycler.multi22.Basic.JssBaseItemProvider
import com.example.library_common.adapter.JssBaseViewHolder
import com.example.shushiyunsst.R
import com.example.shushiyunsst.fragment.main.wallet.bean.MyCaptureCListBean
import com.example.shushiyunsst.fragment.main.wallet.bean.MyCaptureInterfaces

class MyCaptureCListProvider : JssBaseItemProvider<MyCaptureInterfaces?, JssBaseViewHolder>() {

    override val layoutId: Int= R.layout.my_capture_head_item_fragment_layout


    override val itemViewType: Int=MyCaptureInterfaces.CList


    override fun convert(helper: JssBaseViewHolder?, mItem: MyCaptureInterfaces?) {
        val item=mItem as MyCaptureCListBean

        helper?.setText(R.id.title, item.title.toString())
            ?.setText(R.id.consumptionU, item.consumptionU.toString())
            ?.setText(R.id.marketPer, item.marketPer.toString())
            ?.setText(R.id.publicWelfareBalance, item.publicWelfareBalance.toString())
            ?.setText(R.id.destroyBalance, item.destroyBalance.toString())
            ?.setText(R.id.extractFeeBalance, item.extractFeeBalance.toString())
    }
}